Routines (alphabetical) > Routines: H > HDF Routines > HDF_IDL2HDFTYPE

HDF_IDL2HDFTYPE

This function converts an IDL variable type code into an HDF data type code. See the IDL SIZE function and tables 3-2 through 3-4 in Scientific Data Formats for actual values.

Examples

iType = SIZE(5.0d,/TYPE)

PRINT, HDF_IDL2HDFTYPE( iType )

Syntax

Result = HDF_IDL2HDFTYPE( idltypecode )

Return Value

Returns the HDF data type code. A return value of zero means the type could not be mapped.

Arguments

idltypecode

An IDL variable type code (long).

Keywords

None

Version History

5.2

Introduced

See Also

HDF_HDF2IDLTYPE